package user

import (
	"orm_gin/apis/users"

	"github.com/gin-gonic/gin"
)

func UserApi(r *gin.Engine, fc gin.HandlerFunc) {
	u := r.Group("/user").Use(fc)
	{
		u.PUT("", users.UpdateUser)
		// 获取用户信息
		u.GET("/info", users.GetUserInfo)
		u.PUT("/pwd", users.UpdatePassword)
	}
}
